﻿@model DateTime?

@{
    String modelValue = "";
    if (Model.HasValue)
    {
        if (Model.Value != DateTime.MinValue)
        {
            modelValue = Model.Value.ToShortTimeString();
        }
    }
}

@Html.TextBox("", modelValue, new { @class = "tbx timepicker" })